/**
 * 
 */
package co.com.umobile.dao;

import android.util.Log;
import co.com.umobile.persistence.DatabaseManager;

/**
 * @since 26/07/2012
 */
public class SubjectDao implements GenericDao {

	/*
	 * (non-Javadoc)
	 * 
	 * @see co.com.umobile.dao.GenericDao#insertOrUpdateData(java.lang.String, int)
	 */
	public void insertOrUpdateData(String values, int serviceNumber) {
		try {

			String sqlText = "insert or replace into Subject(subjectCode, "
					+ " subjectName,teacherCode, teacherName, subjectPeriod, grade1, "
					+ " grade2, grade3, grade4, finalGrade, definitiveGrade) values(" + values + ")";
			DatabaseManager.getDatabase().execSQL(sqlText);
		} catch (Exception e) {
			Log.e("error", e.getMessage());
		}

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see co.com.umobile.dao.GenericDao#deleteDataMirror()
	 */
	public void deleteDataMirror() {
		// TODO Auto-generated method stub

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see co.com.umobile.dao.GenericDao#copyDataToMirror()
	 */
	public void copyDataToMirror() {
		// TODO Auto-generated method stub

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see co.com.umobile.dao.GenericDao#deleteDataOriginal()
	 */
	public void deleteDataOriginal() {
		// TODO Auto-generated method stub

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see co.com.umobile.dao.GenericDao#copyDataToOriginal()
	 */
	public void copyDataToOriginal() {
		// TODO Auto-generated method stub

	}

}
